package demo11;

import java.util.Comparator;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86185
 * Date: 2023-12-20
 * Time: 16:59
 */
class Student{
    String id;
    String name;
    int score;
    int idInt;

    public Student(String id, String name, int score) {
        this.id = id;
        this.name = name;
        this.score = score;
    }
}
class CmpById implements Comparator<Student> {

    @Override
    public int compare(Student o1, Student o2) {
        return o1.idInt - o2.idInt;
    }
}
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int c = scanner.nextInt();
        Student[] students = new Student[n];
        for (int i = 0; i < n; i++) {
            students[i] = new Student(scanner.next(), scanner.next(), scanner.nextInt());
            students[i].idInt = Integer.parseInt(students[i].id);
        }

    }

    private static void sortById(Student[] students) {
        CmpById cmpById = new CmpById();

    }
}
